package entityMapping.demo3.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "COMPUTER")
public class Computer {
    private int computerId;
    private String model;
    private String name;
    private int studentId;

    public Computer() {
    }

    public Computer(int computerId, String model, String name, int studentId) {
        this.computerId = computerId;
        this.model = model;
        this.name = name;
        this.studentId = studentId;
    }

    @Id
    @Column(name = "COMPUTER_ID")
    public int getComputerId() {
        return computerId;
    }

    public void setComputerId(int computerId) {
        this.computerId = computerId;
    }

    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "MODEL")
    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    @Column(name = "STUDENT_ID")
    public int getStudentId() {
        return studentId;
    }

    public void setStudentId(int studentId) {
        this.studentId = studentId;
    }
}
